﻿using System;
using System.Drawing;
using System.Collections;
using System.ComponentModel;
using DevExpress.XtraReports.UI;
using System.Data;

namespace BHair.bb
{
    public partial class XtraReportkcbb : DevExpress.XtraReports.UI.XtraReport
    {
        public XtraReportkcbb()
        {
            InitializeComponent();
        }
        public XtraReportkcbb(DataSet ds)
        {
            InitializeComponent();
            SetDataBind(ds);
        }

        private void SetDataBind(DataSet ds) 
        {
            string time = DateTime.Now.ToLongDateString();
            this.xrLabel13.Text = time;
            string user = chuanzhi.userID;
            this.xrLabel11.Text = user;
            DataSource = ds;
            this.xrLabel6.DataBindings.Add("Text", DataSource, "iid");
            this.xrLabel7.DataBindings.Add("Text", DataSource, "iname");
            this.xrLabel8.DataBindings.Add("Text",DataSource,"iamount");
            this.xrLabel9.DataBindings.Add("Text", DataSource, "ireadme");

        }

    }
}
